package com.xuecheng.search.api;

import com.xuecheng.commons.model.vo.CoursePubIndexVo;
import com.xuecheng.commons.model.vo.CoursePubVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 12441
 * @Date 2022/9/23 19:27
 * @Version 1.0
 */
@FeignClient("xc-search-service")
public interface SearchClient {
    @GetMapping("/course-search/{id}")
    ResponseResult<CoursePubIndexVo> getPubCourseById(@PathVariable String id );
}
